package com.yztx.quartz.task;

import org.springframework.stereotype.Component;

import javax.xml.crypto.Data;
import java.util.Date;

@Component
public class MyTask {

    public void showTime() {
        System.out.println("定时任务开始执行:"+new Date());
    }

}
